<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<link type="text/css" rel="stylesheet" 	href="#{request.contextPath}/css/siscob.css" />
</h:head>

<h:form id="frmitemAcervo">
	<p:panel id="itemacervo" header="Cadastro de Item Acervo" styleClass="panel" closable="true" closeTitle="Fechar">
		
		<p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />
		
		<h:panelGrid columns="2" id="grid">
			<p:outputLabel value="titulo:" for="titulo" />
			<p:inputText id="titulo" required="true" value="#{itemacervoController.cia.titulo}" maxlength="50" size="60"/>
			<p:outputLabel value="autor:" for="autor" />
			<p:inputText id="autor"  required="true" value="#{itemacervoController.cia.autor}" />
			<p:outputLabel value="editora:" for="editora" />
			<p:inputText id="editora" required="true" value="#{itemacervoController.cia.editora}" maxlength="50" size="60" />
			<p:outputLabel value="Ano de Publicacao:" for="anopublicacao" />	
		    <p:inputText id="anopublicacao" required="true" maxlength="4" size="5"
		        value="#{itemacervoController.cia.anopublicacao}" />	
			<p:outputLabel value="Edicao:" for="edicao" />	
		    <p:inputText id="edicao"  required="true" maxlength="3" size="4"
		       value="#{itemacervoController.cia.edicao}" />	
			<p:outputLabel value="assunto:" for="assunto" />
			<p:inputText id="assunto" value="#{itemacervoController.cia.assunto}" maxlength="30" size="40"/>
			<p:outputLabel value="area:" for="area" />
			<p:inputText id="area" maxlength="30" size="40"
				value="#{itemacervoController.cia.area}" />	
			<p:outputLabel value="issb:" for="issb" />
			<p:inputText id="issb" maxlength="10" size="10"
				value="#{itemacervoController.cia.issb}" />	
			<p:outputLabel value="issn:" for="issn" />
			<p:inputText id="issn" maxlength="10" size="10"
				value="#{itemacervoController.cia.issn}" />
			<p:outputLabel value="Palavra chave:" for="palavrachave" />	
		    <p:inputText id="palavrachave"  required="true" maxlength="30" size="40"
				value="#{itemacervoController.cia.palavrachave}" />
			<p:outputLabel value="quantidade:" for="quantidade" />	
		    <p:inputText id="quantidade"  required="true" maxlength="3" size="4"
				value="#{itemacervoController.cia.quantidade}" />
		    					
		</h:panelGrid>
		<h:panelGrid columns="2" styleClass="gridButtons">
			<p:commandButton value="Salvar" styleClass="commandbutton"
				action="#{itemacervoController.cadastrar()}" update="grid" />
			<p:commandButton value="Limpar" styleClass="commandbutton"
				action="#{itemacervoController.limpar()}" update="grid" />
		</h:panelGrid>
	</p:panel>
</h:form>
</html>